<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<html>
<head>
<SCRIPT type="text/javascript">
$().ready(function(){
	$("#goemail").click(function(){
		$("#emailForm").submit();
		return false;
	});
	$("#gomobile").click(function(){
		$("#mobileForm").submit();
		return false;
	});
});
</SCRIPT>
</head>
<body>
  <div id="main" class="member-reg">
  	<h3>找回密码</h3>
    <div class="m-regform">
      <p class="pointmsg">您可以通过以下方式找回密码：</p>
      <table width="70%" border="0" align="center">
         <tr>
           <td height="20" colspan="4" align="right">&nbsp;</td>
         </tr>
         <tr>
           <td align="right"><img src="/images/reg_phone.png" alt="" width="50" height="69" /></td>
           <td align="left" valign="top"><p>第一种：<strong class="txt-L">用手机短信</strong></p>
             <p>&nbsp;</p>
           <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  		<c:choose>
				<c:when test="${empty member.mobile || member.mobileForgetPwdCount >= 10}">
					<input type="button" name="button" id="button" value="马上找回" DISABLED/>
				</c:when>
				<c:otherwise>
					<s:form action="goforgrtpwdmobile.do" method="post" id="mobileForm">
					<input type=hidden value="${loginID}" name="loginID"/>
					<a href="javascript:;" class="btn-mid" id="gomobile">马上找回</a>
					</s:form>
				</c:otherwise>
			</c:choose>
		   </p></td>
           <td align="right"><img src="/images/reg_email.png" alt="" width="50" height="66" hspace="10" /></td>
           <td valign="top"><p>第二种：<strong class="txt-L">用邮箱</strong>&nbsp;&nbsp;&nbsp;</p>
           <p>&nbsp;</p>
           <p>&nbsp;&nbsp;
           <c:choose>
				<c:when test="${empty member.email}">
					<input type="button" name="button" id="button" value="马上找回" DISABLED/>
				</c:when>
				<c:otherwise>
					<s:form action="goforgrtpwdemail.do" method="post" id="emailForm">
					<input type=hidden value="${loginID}" name="loginID"/>
					<a href="javascript:;" class="btn-mid" id="goemail">马上找回</a>
					</s:form>
				</c:otherwise>
			</c:choose>
           </p></td>
         </tr>
         <tr>
           <td width="0" align="left"></td>
				<c:if test="${empty member.mobile}">
					<td height="30" colspan="2" align="left"><p class="txt-gy">(手机未验证，请用邮箱找回密码)</p></td>
				</c:if>
				<c:if test="${not empty member.mobile}">
					<c:choose>
						<c:when test="${member.mobileForgetPwdCount >= 10}">
							<td height="45" align="left" valign="bottom">
							<p class="txt-rd">抱歉，每月可使用手机找回密码10次，<br />
         					 您已达使用上限，请改用邮箱找回或请<br />拨打耀点100客服电话：4001-168-100 联系客服。</p>
							</td>
						</c:when>
						<c:otherwise>
							<td height="45" align="left" valign="bottom">
							<p class="txt-gy">请确保您的手机在身边，以便即时<br />收到校验码短信（免费）。</p>
							</td>
						</c:otherwise>
					</c:choose>
				</c:if>
            <c:choose>
				<c:when test="${empty member.email}">
					<td height="30" colspan="2" align="right"><p class="txt-gy"><p class="txt-gy">(邮箱未验证，请用手机找回密码)</p></td>
				</c:when>
				<c:otherwise>
					<td colspan="2" align="center">&nbsp;</td>
				</c:otherwise>
			</c:choose>
         </tr>
      </table>
     <p align="center">&nbsp;</p></div>
  </div>
</body>
</html>